package com.ruifu.pls.entity;

import java.io.Serializable;

/**
 * ********************************************************
 * * @desc  ：
 * * @author  ${user}
 * * @date    ${date}
 * * @version v1.0
 * * ${tags}
 * *******************************************************
 */
public class InvLotLocIdId implements Serializable {
        private String lotnum;
        private String locationid;
        private String traceid;

        // Constructors

        /** default constructor */
        public InvLotLocIdId() {
        }

        /** full constructor */
        public InvLotLocIdId(String lotnum, String locationid, String traceid) {
            this.lotnum = lotnum;
            this.locationid = locationid;
            this.traceid = traceid;
        }

        // Property accessors

      //  @Column(name = "LOTNUM", nullable = false, length = 10)
        public String getLotnum() {
            return this.lotnum;
        }

        public void setLotnum(String lotnum) {
            this.lotnum = lotnum;
        }

      //  @Column(name = "LOCATIONID", nullable = false, length = 60)
        public String getLocationid() {
            return this.locationid;
        }

        public void setLocationid(String locationid) {
            this.locationid = locationid;
        }

       // @Column(name = "TRACEID", nullable = false, length = 30)
        public String getTraceid() {
            return this.traceid;
        }

        public void setTraceid(String traceid) {
            this.traceid = traceid;
        }

        public boolean equals(Object other) {
            if ((this == other))
                return true;
            if ((other == null))
                return false;
            if (!(other instanceof InvLotLocIdId))
                return false;
            InvLotLocIdId castOther = (InvLotLocIdId) other;

            return ((this.getLotnum() == castOther.getLotnum()) || (this
                    .getLotnum() != null && castOther.getLotnum() != null && this
                    .getLotnum().equals(castOther.getLotnum())))
                    && ((this.getLocationid() == castOther.getLocationid()) || (this
                    .getLocationid() != null
                    && castOther.getLocationid() != null && this
                    .getLocationid().equals(castOther.getLocationid())))
                    && ((this.getTraceid() == castOther.getTraceid()) || (this
                    .getTraceid() != null && castOther.getTraceid() != null && this
                    .getTraceid().equals(castOther.getTraceid())));
        }

        public int hashCode() {
            int result = 17;

            result = 37 * result
                    + (getLotnum() == null ? 0 : this.getLotnum().hashCode());
            result = 37
                    * result
                    + (getLocationid() == null ? 0 : this.getLocationid()
                    .hashCode());
            result = 37 * result
                    + (getTraceid() == null ? 0 : this.getTraceid().hashCode());
            return result;
        }

    }
